package com.timoon.component.behavior.toastmessage;

import com.googlecode.wicket.jquery.ui.Options;

public class ToastMessageBehavior extends AbstractToastmessageBehavior {

	private static String METHOD="toastmessage";
	public static String NOTICE="notice";
	public static String MARNING="warning";
	public static String ERROR="error";
	public static String SUCCESS="success";
	
	public static Options createOptions(String text,String type){
		Options opt=new Options();
		opt.set("text", "\""+text+"\"");
		opt.set("sticky","true");
		opt.set("position", "\"top-right\"");
		opt.set("type", "\""+type+"\"");
		opt.set("close", "function(){}");
		
		return opt;
	}
	
	public ToastMessageBehavior(String selector,Options options) {
		super(selector, METHOD, options);
		// TODO Auto-generated constructor stub
	}

}
